package com.fr.base.core.antlr;

class WildcardElement extends GrammarAtom
{
  protected String label;

  public WildcardElement(Grammar paramGrammar, Token paramToken, int paramInt)
  {
    super(paramGrammar, paramToken, paramInt);
    this.line = paramToken.getLine();
  }

  public void generate()
  {
    this.grammar.generator.gen(this);
  }

  public String getLabel()
  {
    return this.label;
  }

  public Lookahead look(int paramInt)
  {
    return this.grammar.theLLkAnalyzer.look(paramInt, this);
  }

  public void setLabel(String paramString)
  {
    this.label = paramString;
  }

  public String toString()
  {
    String str = " ";
    if (this.label != null)
      str = str + this.label + ":";
    return str + ".";
  }
}